<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>
    <form action="{:U('update')}" method="post" class="form-horizontal">
        <div class="form-item">
          
        </div>

        <div class="form-item">
            <label class="item-label">标题<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="title" value="{$info['title']}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">链接<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="url" value="{$info['url']}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">上传图片<span class="check-tips"></span></label>
            <div class="controls">
                {:hook('showUpload',array('cover_id',$info['cover_id']))}
            </div>
        </div>

     <!--    <div class="form-item">
            <label class="item-label">结束时间<span class="check-tips"></span></label>
            <div class="controls">
                {:hook('showTime',array('end_time',$info['end_time'],array( 'class'=>'text input-medium')))}
            </div>
        </div> -->
        
        <div class="form-item">
            <label class="item-label">描述<span class="check-tips"></span></label>
            <div class="controls">
                <label class="textarea input-large">
                    <textarea name="description" >{$info['description']}</textarea>
                </label>
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">排序<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-small" name="sort" value="{$info['sort']|default='0'}">
            </div>
        </div>

        <div class="form-item">
            <input type="hidden" name="id" value="{$info.id|default=''}"/>
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav("{:U('index')}");
    </script>
</block>
